//
//  JavaDate.h
//
//  Created by GaoShin on 2020/6/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface JavaDate : NSObject

-(instancetype) initWithNSDate:(NSDate *) date;
-(instancetype) initWithTimeInMillis:(long long) timeInMillis;
-(instancetype) initWithTimeInSeconds:(long) timeInSeconds;

+(instancetype) javaDateFromNSDate:(NSDate *) date;

/// 返回带毫秒的时间戳(Java格式)
-(long long) getTimeInMillis;

-(NSDate *) getDate;

@end

NS_ASSUME_NONNULL_END
